home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17388 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.dal.ca!news
  2. From: Dan Kelley <d.kelley@dal.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: publicly avail class for X11?
  5. Date: Mon, 15 Apr 1996 14:17:40 -0300
  6. Organization: Dalhousie University
  7. Message-ID: <317284B4.519A@dal.ca>
  8. NNTP-Posting-Host: skye.phys.ocean.dal.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  13.  
  14. Hi folks.  Is there a freely available class designed to let me draw on an X11
  15. display without going through dozens of low-level commands?
  16.  
  17. Ideally it would have capabilities like:
  18.    Screen s;
  19.    s.initialize();         // actually create the window
  20.    s.draw("hello world", 10, 10); // draw text indicated location
  21.    s.draw(10, 10, 100, 100);       // draw diagonal line
  22. and so forth, with optional things like
  23.    s.window_name("foo bar");    // optional, defaults to ""
  24.    s.size(500, 500);        // optional, defaults to 300x300
  25.    s.select_font(Helvetica);      // select named font
  26. and so forth, along with various callback registry routines.
  27.  
  28. For folks like me (a scientist, not a programmer) who only occasionally use X11, this
  29. would be a useful class to have available.
  30.  
  31. Since this seems relatively straightforward for X11 geniuses, I'm wondering whether
  32. it exists already.  I imagine another advantage would be that it could isolate code
  33. for X11 and other platforms, so that scientists like me could easily create crude
  34. interfaces if only for output) on various platforms.
  35.  
  36. Thanks in advance to any who have advice.
  37.  
  38. -- 
  39. Dan E. Kelley                   internet:         mailto:Dan.Kelley@Dal.CA
  40. Oceanography Department         phone:                       (902)494-1694
  41. Dalhousie University            fax:                         (902)494-2885
  42. Halifax, NS, CANADA, B3H 4J1    WWW:  http://www.phys.ocean.dal.ca/~kelley
  43.